package com.kfm.pm;

public class Demo02 {

    public static void main(String[] args) {
        int a = 10;
        change(a);
        System.out.println(a); // 10

        int[] arr = {1, 2, 3, 4};
        changeArr(arr);
        System.out.println(arr[2]); // 99
    }

    public static void change(int a) {
        a+=10;
    }

    public static void changeArr(int[] arr) {
        arr[2] = 99;
    }
}
